import Vue from 'vue'
import VueRouter from 'vue-router'
import drag from '../views/drag.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'drag',
    component: drag
  },
  {
    path: '/drag',
    name: 'drag',
    component: () => import( '../views/drag.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
